Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-DataElement3to2.html |
Url | http://hl7.org/fhir/StructureMap/DataElement3to2 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | DataElement3to2 |
Title | DataElement Transforms: R3 to R2 |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | DataElementTransformsR3toR2 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/DataElement3to2' /// name = 'DataElement3to2' /// title = 'DataElement Transforms: R3 to R2' /// status = 'active' uses "http://hl7.org/fhir/3.0/DataElement" alias DataElement as source uses "http://hl7.org/fhir/1.0/DataElement" alias DataElementR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2" group DataElement(source src : DataElement, target tgt : DataElementR2) extends DomainResource <<type+>> { src.url -> tgt.url "DataElement-url"; src.identifier -> tgt.identifier "DataElement-identifier"; src.version -> tgt.version "DataElement-version"; src.experimental -> tgt.experimental "DataElement-experimental"; src.name -> tgt.name "DataElement-name"; src.status -> tgt.status "DataElement-status"; src.publisher -> tgt.publisher "DataElement-publisher"; src.contact as vs0 -> tgt.contact as vt0 then decontact(vs0, vt0) "DataElement-contact"; src.date -> tgt.date "DataElement-date"; src.jurisdiction -> tgt.useContext "DataElement-useContext"; src.useContext as vs then { vs.value -> tgt.useContext "DataElement-useContext-value"; } "DataElement-useContext"; src.stringency -> tgt.stringency "DataElement-stringency"; src.mapping as vs0 -> tgt.mapping as vt0 then deMapping(vs0, vt0) "DataElement-mapping"; src.element as vs -> tgt.element as vt then ElementDefinition(src, vs, vt) "DataElement-element"; } group decontact(source src, target tgt) extends Element { src.name -> tgt.name "ContactDetail-name"; src.telecom -> tgt.telecom "ContactDetail-telecom"; } group deMapping(source src, target tgt) extends Element { src.identity -> tgt.identity "mapping-identity"; src.uri -> tgt.uri "mapping-uri"; src.name -> tgt.name "mapping-name"; src.comment -> tgt.comments "mapping-comments"; }
{
"resourceType" : "StructureMap",
"id" : "DataElement3to2",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/DataElement3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'DataElement3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'DataElement Transforms: R3 to R2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/DataElement<span style=\"color: navy\">" </span><b>alias </b>DataElement <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/DataElement<span style=\"color: navy\">" </span><b>alias </b>DataElementR2 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to2<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>DataElement<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>DataElement, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>DataElementR2<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.url<span style=\"color: navy\"><b> -> </b></span>tgt.url <i>"DataElement-url"</i><span style=\"color: navy\">;</span>\r\n src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"DataElement-identifier"</i><span style=\"color: navy\">;</span>\r\n src.version<span style=\"color: navy\"><b> -> </b></span>tgt.version <i>"DataElement-version"</i><span style=\"color: navy\">;</span>\r\n src.experimental<span style=\"color: navy\"><b> -> </b></span>tgt.experimental <i>"DataElement-experimental"</i><span style=\"color: navy\">;</span>\r\n src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name <i>"DataElement-name"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"DataElement-status"</i><span style=\"color: navy\">;</span>\r\n src.publisher<span style=\"color: navy\"><b> -> </b></span>tgt.publisher <i>"DataElement-publisher"</i><span style=\"color: navy\">;</span>\r\n src.contact<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.contact<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>decontact<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>"DataElement-contact"</i><span style=\"color: navy\">;</span>\r\n src.date<span style=\"color: navy\"><b> -> </b></span>tgt.date <i>"DataElement-date"</i><span style=\"color: navy\">;</span>\r\n src.jurisdiction<span style=\"color: navy\"><b> -> </b></span>tgt.useContext <i>"DataElement-useContext"</i><span style=\"color: navy\">;</span>\r\n src.useContext<b> as </b><span style=\"color: maroon\">vs</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs.value<span style=\"color: navy\"><b> -> </b></span>tgt.useContext <i>"DataElement-useContext-value"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"DataElement-useContext"</i><span style=\"color: navy\">;</span>\r\n src.stringency<span style=\"color: navy\"><b> -> </b></span>tgt.stringency <i>"DataElement-stringency"</i><span style=\"color: navy\">;</span>\r\n src.mapping<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.mapping<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>deMapping<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>"DataElement-mapping"</i><span style=\"color: navy\">;</span>\r\n src.element<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.element<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>ElementDefinition<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span> <i>"DataElement-element"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>decontact<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>Element<span style=\"color: navy\"> {\r\n</span> src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name <i>"ContactDetail-name"</i><span style=\"color: navy\">;</span>\r\n src.telecom<span style=\"color: navy\"><b> -> </b></span>tgt.telecom <i>"ContactDetail-telecom"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>deMapping<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>Element<span style=\"color: navy\"> {\r\n</span> src.identity<span style=\"color: navy\"><b> -> </b></span>tgt.identity <i>"mapping-identity"</i><span style=\"color: navy\">;</span>\r\n src.uri<span style=\"color: navy\"><b> -> </b></span>tgt.uri <i>"mapping-uri"</i><span style=\"color: navy\">;</span>\r\n src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name <i>"mapping-name"</i><span style=\"color: navy\">;</span>\r\n src.comment<span style=\"color: navy\"><b> -> </b></span>tgt.comments <i>"mapping-comments"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/DataElement3to2",
"version" : "0.1.0",
"name" : "DataElement3to2",
"title" : "DataElement Transforms: R3 to R2",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "DataElementTransformsR3toR2",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/DataElement",
"mode" : "source",
"alias" : "DataElement"
},
{
"url" : "http://hl7.org/fhir/1.0/DataElement",
"mode" : "target",
"alias" : "DataElementR2"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to2"
],
"group" : [
{
"name" : "DataElement",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "DataElement",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "DataElementR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "DataElement-url",
"source" : [
{
"context" : "src",
"element" : "url",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "url",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-version",
"source" : [
{
"context" : "src",
"element" : "version",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "version",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-experimental",
"source" : [
{
"context" : "src",
"element" : "experimental",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "experimental",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-name",
"source" : [
{
"context" : "src",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-publisher",
"source" : [
{
"context" : "src",
"element" : "publisher",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "publisher",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-contact",
"source" : [
{
"context" : "src",
"element" : "contact",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "contact",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "decontact",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "DataElement-date",
"source" : [
{
"context" : "src",
"element" : "date",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "date",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-useContext",
"source" : [
{
"context" : "src",
"element" : "jurisdiction",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "useContext",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-useContext",
"source" : [
{
"context" : "src",
"element" : "useContext",
"variable" : "vs"
}
],
"rule" : [
{
"name" : "DataElement-useContext-value",
"source" : [
{
"context" : "vs",
"element" : "value",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "useContext",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "DataElement-stringency",
"source" : [
{
"context" : "src",
"element" : "stringency",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "stringency",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "DataElement-mapping",
"source" : [
{
"context" : "src",
"element" : "mapping",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "mapping",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "deMapping",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "DataElement-element",
"source" : [
{
"context" : "src",
"element" : "element",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "element",
"variable" : "vt"
}
],
"dependent" : [
{
"name" : "ElementDefinition",
"parameter" : [
{
"valueId" : "src"
},
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
}
]
},
{
"name" : "decontact",
"extends" : "Element",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "ContactDetail-name",
"source" : [
{
"context" : "src",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ContactDetail-telecom",
"source" : [
{
"context" : "src",
"element" : "telecom",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "telecom",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "deMapping",
"extends" : "Element",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "mapping-identity",
"source" : [
{
"context" : "src",
"element" : "identity",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identity",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "mapping-uri",
"source" : [
{
"context" : "src",
"element" : "uri",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "uri",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "mapping-name",
"source" : [
{
"context" : "src",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "mapping-comments",
"source" : [
{
"context" : "src",
"element" : "comment",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "comments",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.